home *** CD-ROM | disk | FTP | other *** search
/ Champak 53 / Volume 53 - JOGO DISK .iso / Games / thefarmer.swf / scripts / DefineButton2_432 / BUTTONCONDACTION on(release).as
Text File  |  2007-10-01  |  2KB  |  81 lines

  1. on(release){
  2.    if(_root.lahan3s4 == 0 and _root.kursor._currentframe == 3)
  3.    {
  4.       _root.lahan3s4 = 1;
  5.       _root.energi -= 1;
  6.    }
  7.    if(_root.lahan3p4 == 0 and _root.kursor._currentframe == 4)
  8.    {
  9.       _root.lahan3p4 = _root.lahan3p4 + 1;
  10.       _root.energi -= 1;
  11.       _root.pupuk--;
  12.    }
  13.    if(_root.kursor._currentframe == 5)
  14.    {
  15.       _root.lahan3u4 = 0;
  16.       _root.energi -= 1;
  17.       _root.pestisida--;
  18.    }
  19.    if(_root.kursor._currentframe == 6)
  20.    {
  21.       _root.lahan3t4 = 12;
  22.       _root.energi -= 1;
  23.    }
  24.    if(_root.lahan3t4 == 5 and _root.kursor._currentframe == 2)
  25.    {
  26.       if(_root.tanamanlahan3 == 1 or _root.tanamanlahan3 == 2 or _root.tanamanlahan3 == 3 or _root.tanamanlahan3 == 8)
  27.       {
  28.          _root.lahan3t4 = 12;
  29.       }
  30.       if(_root.tanamanlahan3 == 4)
  31.       {
  32.          _root.lahan3panen4 = _root.lahan3panen4 + 1;
  33.          if(_root.lahan3panen4 > 3)
  34.          {
  35.             _root.lahan3t4 = 6;
  36.          }
  37.          else
  38.          {
  39.             _root.lahan3t4 = 4;
  40.          }
  41.       }
  42.       if(_root.tanamanlahan3 == 5)
  43.       {
  44.          _root.lahan3panen4 = _root.lahan3panen4 + 1;
  45.          if(_root.lahan3panen4 > 4)
  46.          {
  47.             _root.lahan3t4 = 6;
  48.          }
  49.          else
  50.          {
  51.             _root.lahan3t4 = 4;
  52.          }
  53.       }
  54.       if(_root.tanamanlahan3 == 6)
  55.       {
  56.          _root.lahan3panen4 = _root.lahan3panen4 + 1;
  57.          if(_root.lahan3panen4 > 3)
  58.          {
  59.             _root.lahan3t4 = 6;
  60.          }
  61.          else
  62.          {
  63.             _root.lahan3t4 = 4;
  64.          }
  65.       }
  66.       if(_root.tanamanlahan3 == 7)
  67.       {
  68.          _root.lahan3panen4 = _root.lahan3panen4 + 1;
  69.          if(_root.lahan3panen4 > 5)
  70.          {
  71.             _root.lahan3t4 = 6;
  72.          }
  73.          else
  74.          {
  75.             _root.lahan3t4 = 4;
  76.          }
  77.       }
  78.       _root.kursor.gotoAndStop(9 + _root.tanamanlahan3);
  79.    }
  80. }
  81.